/**
 * Auto gen via dbpojo-gen.
 */
package com.us.usws.site.console.action;

import java.util.List;

import javax.inject.Inject;

import com.us.usws.model.domain.video.VideoAttendee;
import com.us.usws.service.ro.VideoAttendeeROService;
import com.us.usws.support.uitls.JSONDataUtil;

/**
 * Struts2 action
 * @author robot
 */
public class VideoAttendeeAction extends BasePageSearchAction<VideoAttendee> {

	private static final long serialVersionUID = 1L;

	private VideoAttendee videoAttendee;

	@Inject
	private VideoAttendeeROService videoAttendeeROService;


	private String uids;

	/**
	 * ajax load the list of VideoAttendee
	 */
	public void ajaxLoadVideoAttendees() {
		createDataPageUtil();
		List<VideoAttendee> videoAttendees = videoAttendeeROService.getVideoAttendees(getStart(), getLimit());
		getOut().println(JSONDataUtil.extJsonSupportPage(videoAttendees, dataPageUtil.getRowCount()));
	}

	public void setVideoAttendee(VideoAttendee videoAttendee) {
		this.videoAttendee = videoAttendee;
	}

	public VideoAttendee getVideoAttendee() {
		return videoAttendee;
	}

	public String getUids() {
		return uids;
	}

	public void setUids(String uids) {
		this.uids = uids;
	}

}